package com.itheima.dao;

import com.itheima.pojo.Permission;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.poi.hssf.record.chart.SeriesTextRecord;

import java.util.Set;

public interface PermissionDao {

    @Select("select tp.* from t_permission tp,t_role_permission trp where tp.id=trp.permission_id and trp.role_id=#{role_id}")
    public Set<Permission> findByRoleId(@Param("role_id") Integer roleId);
}
